import request from '../../../../../public/js/common/api/api.js';

const BILivestockUrl = Utils.CurDomain.BILivestockUrl;
//const BILivestockUrl = `https://301578a3v3.picp.vip/api`;
const PigsltrUrl = Utils.CurDomain.PigsltrUrl;


/**
 * @file销售日报API
 */
export default class salesdailyApi {
    // 查询列表
    static querydailyList(data) {
        return request.post(`${PigsltrUrl}/pigsltrdailyrpts/alllist`, data,true);
    }

    // 查询销售订单日汇总
    static postSaleTotal(data) {
        return request.post(`${BILivestockUrl}/saleorderrpts/total/day`, data);
    }
    // 查询销售订单客户日汇总
    static postSaleCust(data) {
        return request.post(`${BILivestockUrl}/saleorderrpts/cust/day`, data);
    }
    // 查询销售订单大区日汇总
    static postSaleRegion(data) {
        return request.post(`${BILivestockUrl}/saleorderrpts/region/day`, data);
    }
    //查询销售订单年销量
    static getTotalYear(year) {
        return request.get(`${BILivestockUrl}/saleorderrpts/total/y/${year}`);
    }
    //查询销售日报列表
    static postDayList(data) {
        return request.post(`${BILivestockUrl}/saleorderrpts/day/list`, data);
    }
}